package xgd

// action
const (
	getTimeGroup   = "get_timegroup"   // GET, 获取时间组
	setTimeGroup   = "set_timegroup"   // POST, 设置时间组
	clearTimeGroup = "clear_timegroup" // POST, 清空时间组

	getCards   = "get_cards"   // GET, 获取所有卡信息
	addCard    = "add_card"    // POST, 设置卡信息
	getCard    = "get_card"    // GET, 获取单张卡信息
	modifyCard = "modify_card" // POST, 修改卡信息
	deleteCard = "delete_card" // POST, 删除卡信息

	getDoors     = "get_doors"      // GET, 获取门信息
	getDoorState = "get_door_state" // GET, 获取门状态
	setDoorState = "set_door_state" // POST, 设置门状态

	getEvent              = "get_event"                // GET, 获取门禁记录
	getHistoryEvent       = "get_history_event"        // GET, 获取历史记录
	getAccessEvent        = "get_access_event"         // GET, 获取刷卡记录&门禁告警
	getAccessHistoryEvent = "get_access_history_event" // GET, 获取指定时间段的历史刷卡记录&门

	setCurrentTime = "set_current_time"
	getCurrentTime = "get_current_time"

	getLog       = "get_log"
	delLog       = "del_log"
	getDrvInfo   = "get_drv_info"
	getLogInfo   = "get_log_info"
	getAPNByPara = "get_apn_by_para"
	cleanDevice  = "clean_device"
)

// parameter
const (
	_groupNo     = "group_no"
	_cardNo      = "card_no"
	_recordIndex = "record_index"
	_alarmIndex  = "alarm_index"
	_timeBegin   = "time_begin"
	_timeEnd     = "time_end"
	_door        = "door"
	_data        = "data"
	_sn          = "sn"
	_mcc         = "mcc"
	_mnc         = "mnc"
)
